/*
 * SR04.h
 *
 *  Created on: Sep 10, 2025
 *      Author: lianz
 */

#ifndef INC_SR04_H_
#define INC_SR04_H_

#define SR04_SEND_Pin GPIO_PIN_3
#define SR04_SEND_GPIO_Port GPIOA
#define SR04_RECEIVE_Pin GPIO_PIN_2
#define SR04_RECEIVE_GPIO_Port GPIOA
#define SR04_RECEIVE_EXTI_IRQn EXTI2_IRQn

extern volatile uint16_t count;
extern volatile float distance;

//void RCCdelay_us(uint32_t udelay);
//void Get_Distance(void);
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin);

#endif /* INC_SR04_H_ */
